
export default function Profile({ user }) {
    return (
        <div className="row">
            <div className="col-sm-2 col-lg-1 offset-sm-1">
                <img className="img-fluid img-thumbnail" src="http://api.btstu.cn/sjtx/api.php?lx=c1&format=images" alt="头像" data-holder-rendered="true"></img>
            </div>
            <div className="col-sm-2">
                <h3>{user && user.username}</h3>
                <div className="text-muted">学分: {user && user.credit}</div>
            </div>
        </div>
    )
};
